Use addTransceiver and if failing, fall back to offerToReceiveVideo
diff --git a/webrtc/no-media-call.html b/webrtc/no-media-call.html index 0a15a37..ff7ab53 100644 --- a/webrtc/no-media-call.html +++ b/webrtc/no-media-call.html
@@ -17,6 +17,7 @@ <!-- These files are in place when executing on W3C. --> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> + <script src="/webrtc/RTCPeerConnection-helper.js"></script> <script type="text/javascript"> var test = async_test('Can set up a basic WebRTC call with no data.'); @@ -125,8 +126,7 @@ // The offerToReceiveVideo is necessary and sufficient to make // an actual connection. - gFirstConnection.addTransceiver('video', { direction: 'recvonly' }); - gFirstConnection.createOffer() + generateVideoReceiveOnlyOffer(gFirstConnection) .then(onOfferCreated, failed('createOffer')); }); </script>